Mở PowerShell với quyền Administrator Bấm Start, gõ "PowerShell", nhấp phải → Run as administrator. (Tiếng Hàn: 시작 누르고 PowerShell 입력 → 우클릭 → 관리자 권한으로 실행) Script PowerShell (tự động xoá nhiều mục). Dán toàn bộ khối bên dưới vào PowerShell (Admin) và chạy: # Script: Xóa nhanh lịch sử mở file trên Windows 11 # Chạy bằng PowerShell (Admin). Đảm bảo đóng các ứng dụng trước. Try { Write-Output "Bắt đầu xóa lịch sử..." # 1) Clear File Explorer history (Quick Access) Write-Output "Xóa File Explorer history..." $f = "$env:APPDATA\Microsoft\Windows\Recent\AutomaticDestinations" $g = "$env:APPDATA\Microsoft\Windows\Recent\CustomDestinations" $r = "$env:APPDATA\Microsoft\Windows\Recent" If (Test-Path $f) { Get-ChildItem -Path $f -Force -ErrorAction SilentlyContinue | Remove-Item -Force -Recurse -ErrorAction SilentlyContinue } If (Test-Path $g) { Get-ChildItem -Path $g -Force -ErrorAction SilentlyContinue | Remove-Item -Force -Recurse -ErrorAction SilentlyContinue } If (Test-Path $r) { Get-ChildItem -Path $r -Force -ErrorAction SilentlyContinue | Remove-Item -Force -Recurse -ErrorAction SilentlyContinue } # 2) Clear Run history (registry) Write-Output "Xóa Run history (registry)..." reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /f 2>$null # 3) Clear RecentDocs (registry) Write-Output "Xóa RecentDocs (registry)..." reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /f 2>$null # 4) Clear Jump Lists files (already covered by AutomaticDestinations), ensure # (no additional action needed) # 5) Delete thumbnail cache Write-Output "Xóa thumbnail cache..." $thumbs = "$env:LOCALAPPDATA\Microsoft\Windows\Explorer\thumbcache_*.db" Get-ChildItem -Path $thumbs -ErrorAction SilentlyContinue | ForEach-Object { Remove-Item -Path $_.FullName -Force -ErrorAction SilentlyContinue } # 6) Clean temporary files (Temp folders) Write-Output "Xóa files tạm..." $tmp1 = "$env:TEMP\*" $tmp2 = "$env:WINDIR\Temp\*" Get-ChildItem -Path $tmp1 -Force -ErrorAction SilentlyContinue | Remove-Item -Force -Recurse -ErrorAction SilentlyContinue Get-ChildItem -Path $tmp2 -Force -ErrorAction SilentlyContinue | Remove-Item -Force -Recurse -ErrorAction SilentlyContinue # 7) Clear Windows Search user data (Activity history) Write-Output "Xóa Windows activity history registry keys (một phần)..." reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Search\RecentItems" /f 2>$null reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Search\StartPage" /f 2>$null # 8) Clear Event logs (optional) - Uncomment if want to clear # Write-Output "Clearing Event Logs..." # Get-WinEvent -ListLog * | ForEach-Object { wevtutil cl $_.LogName } # 9) Rebuild Search Index (optional - may take time) # Write-Output "Rebuilding search index (optional)..." # & "$env:windir\system32\control.exe" /name Microsoft.IndexingOptions # To automate rebuild via COM is complex; user can rebuild via Indexing Options GUI. Write-Output "Hoàn tất. Vui lòng khởi động lại máy để đảm bảo các cache bị xóa hoàn toàn." } Catch { Write-Error "Có lỗi xảy ra: $_" } Các bước bổ sung (Command Prompt / single commands) Xóa lịch sử File Explorer (tương đương, nhưng GUI đã nhanh). Nếu muốn xóa Recent folder bằng CMD (Admin): del /f /s /q %AppData%\Microsoft\Windows\Recent\* Xóa Jump Lists (AutomaticDestinations / CustomDestinations) bằng CMD: del /f /s /q "%AppData%\Microsoft\Windows\Recent\AutomaticDestinations\*" del /f /s /q "%AppData%\Microsoft\Windows\Recent\CustomDestinations\*" Xóa thumbnail cache bằng CMD (Admin): del /f /s /q /a "%LocalAppData%\Microsoft\Windows\Explorer\thumbcache_*.db" Xóa Run MRU bằng reg (CMD Admin): reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /f Xóa RecentDocs: reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /f Xóa danh sách MRU cho Office: tốt nhất xóa từ ứng dụng hoặc reset registry keys (khuyến cáo sao lưu registry trước). Ví dụ xóa Word MRU (phiên bản Office khác nhau, kiểm tra số phiên bản): reg delete "HKCU\Software\Microsoft\Office\16.0\Word\File MRU" /f (Thay 16.0 nếu Office 2016/2019/365. Nếu không chắc, tốt hơn mở Word → File → Open → Clear Recent.) Trình duyệt web, ứng dụng khác Chrome (đóng Chrome trước), xóa profile history bằng GUI hoặc xóa thư mục profile (nặng tay): rd /s /q "%LOCALAPPDATA%\Google\Chrome\User Data\Default\History" rd /s /q "%LOCALAPPDATA%\Google\Chrome\User Data\Default\History Provider Cache" Edge (Chromium): rd /s /q "%LOCALAPPDATA%\Microsoft\Edge\User Data\Default\History" (Thao tác này sẽ làm hỏng profile nếu Edge đang chạy; tốt nhất xóa lịch sử qua trình duyệt, hoặc tạo profile mới.) Xóa tài khoản người dùng cũ (nếu mục tiêu là bàn giao) Tạo user mới admin cho nhân viên mới (Settings → Accounts → Family & other users). Xóa account cũ (Settings → Accounts → Family & other users → chọn user → Remove). Hoặc bằng PowerShell (Admin): # Liệt kê user Get-LocalUser # Xóa user (ví dụ: tên 'olduser') Remove-LocalUser -Name "olduser" Lưu ý: Remove-LocalUser xóa account nhưng không xóa profile folder. Để xóa folder profile: # Xóa profile folder Remove-Item -LiteralPath "C:\Users\olduser" -Recurse -Force # Xóa profile registry key reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\" /f (Phải xác định SID tương ứng; thao tác này rủi ro nếu không quen.) Nếu muốn phương án an toàn triệt để Cài lại Windows 11 hoặc phục hồi image chuẩn của công ty. Đây là cách đảm bảo không còn dấu vết. Kiểm tra sau khi thực hiện Khởi động lại máy. Tạo user test, đăng nhập, kiểm tra File Explorer Quick Access, Start > Recent, Office Recent, trình duyệt. Nếu bạn muốn, tôi có thể: Gửi file .ps1 đã chuẩn bị để bạn tải về và chạy (tôi sẽ cần xác nhận bạn muốn file), Hoặc hướng dẫn từng bước bằng tiếng Hàn (viết từng lệnh + mô tả tiếng Hàn) để bạn dễ thao tác. Bạn muốn tôi gửi script .ps1 để bạn chạy trực tiếp không? Nếu có, tôi sẽ đính kèm script bằng ngôn ngữ đơn giản/tiếng Hàn.